package com.sjy.project.ent.yearSta.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sjy.framework.aspectj.lang.annotation.Excel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.sjy.framework.web.domain.BaseEntity;

/**
 * 企业申诉 2022年7月9日16:39:51对象 ent_appeal
 * 
 * @author 林建博
 * @date 2022-07-09
 */
@ApiModel(value="EntAppeal对象", description="企业申诉 2022年7月9日16:39:51")
public class EntAppeal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 申诉记录编号 */
    @Excel(name = "申诉记录编号")
    @ApiModelProperty(value = "申诉记录编号")
    private Long kpiId;

    /** 企业规模 */
    @Excel(name = "企业规模")
    @ApiModelProperty(value = "企业规模")
    private Integer entRule;

    /** 数据年份 */
    @Excel(name = "数据年份")
    @ApiModelProperty(value = "数据年份")
    private Integer dataYear;

    /** 公司名称 */
    @Excel(name = "公司名称")
    @ApiModelProperty(value = "公司名称")
    private String entName;

    /** 统代 */
    @Excel(name = "统代")
    @ApiModelProperty(value = "统代")
    private String creditCode;

    /** 所属乡镇街道 */
    @Excel(name = "所属乡镇街道")
    @ApiModelProperty(value = "所属乡镇街道")
    private String town;

    /** 删除标志 */
    @ApiModelProperty(value = "所属乡镇街道")
    private String delFlag;

    /** 申诉状态，1-待审核,2-审核通过,3-审核未通过 */
    @Excel(name = "申诉状态，1-待审核,2-审核通过,3-审核未通过")
    @ApiModelProperty(value = "申诉状态，1-待审核,2-审核通过,3-审核未通过")
    private Integer appealStatus;

    /** 审核人 */
    @Excel(name = "审核人")
    @ApiModelProperty(value = "审核人")
    private String approvalBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date approvalTime;

    /** 审核详情 */
    @Excel(name = "审核详情")
    @ApiModelProperty(value = "审核详情")
    private String aprovalContent;
    
    /** 申诉前总面积 产权占地面积-出租面积+承租土地 */
    @Excel(name = "申诉前总面积 产权占地面积-出租面积+承租土地")
    @ApiModelProperty(value = "申诉前总面积 产权占地面积-出租面积+承租土地")
    private BigDecimal oldLastTotalLand;

    /** 申诉后总面积 产权占地面积-出租面积+承租土地 */
    @Excel(name = "申诉后总面积 产权占地面积-出租面积+承租土地")
    @ApiModelProperty(value = "申诉后总面积 产权占地面积-出租面积+承租土地")
    private BigDecimal newLastTotalLand;


    @ApiModelProperty(value = "修改前产权信息")
    private List<EntAppealLandData> oldAppealLandDatas;
    @ApiModelProperty(value = "修改后产权信息")
    private List<EntAppealLandData> newAppealLandDatas;

    @ApiModelProperty(value = "修改前出租信息")
    private List<EntAppealRentOutLand> oldAppealRentOutLands;
    @ApiModelProperty(value = "修改后出租信息")
    private List<EntAppealRentOutLand> newAppealRentOutLands;

    @ApiModelProperty(value = "修改前承租信息")
    private List<EntAppealRentInLand> oldAppealRentInLands;
    @ApiModelProperty(value = "修改后承租信息")
    private List<EntAppealRentInLand> newAppealRentInLands;
    
    private EntKpiYearSta kpi;
    
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setKpiId(Long kpiId)
    {
        this.kpiId = kpiId;
    }

    public Long getKpiId()
    {
        return kpiId;
    }
    public void setEntRule(Integer entRule)
    {
        this.entRule = entRule;
    }

    public Integer getEntRule()
    {
        return entRule;
    }
    public void setDataYear(Integer dataYear)
    {
        this.dataYear = dataYear;
    }

    public Integer getDataYear()
    {
        return dataYear;
    }
    public void setEntName(String entName)
    {
        this.entName = entName;
    }

    public String getEntName()
    {
        return entName;
    }
    public void setCreditCode(String creditCode)
    {
        this.creditCode = creditCode;
    }

    public String getCreditCode()
    {
        return creditCode;
    }
    public void setTown(String town)
    {
        this.town = town;
    }

    public String getTown()
    {
        return town;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setAppealStatus(Integer appealStatus)
    {
        this.appealStatus = appealStatus;
    }

    public Integer getAppealStatus()
    {
        return appealStatus;
    }
    public void setApprovalBy(String approvalBy)
    {
        this.approvalBy = approvalBy;
    }

    public String getApprovalBy()
    {
        return approvalBy;
    }
    public void setApprovalTime(Date approvalTime)
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime()
    {
        return approvalTime;
    }
    public void setAprovalContent(String aprovalContent)
    {
        this.aprovalContent = aprovalContent;
    }

    public String getAprovalContent()
    {
        return aprovalContent;
    }

    public BigDecimal getOldLastTotalLand() {
		return oldLastTotalLand;
	}

	public void setOldLastTotalLand(BigDecimal oldLastTotalLand) {
		this.oldLastTotalLand = oldLastTotalLand;
	}

	public BigDecimal getNewLastTotalLand() {
		return newLastTotalLand;
	}

	public void setNewLastTotalLand(BigDecimal newLastTotalLand) {
		this.newLastTotalLand = newLastTotalLand;
	}

	
	public List<EntAppealLandData> getOldAppealLandDatas() {
		return oldAppealLandDatas;
	}

	public void setOldAppealLandDatas(List<EntAppealLandData> oldAppealLandDatas) {
		this.oldAppealLandDatas = oldAppealLandDatas;
	}

	public List<EntAppealLandData> getNewAppealLandDatas() {
		return newAppealLandDatas;
	}

	public void setNewAppealLandDatas(List<EntAppealLandData> newAppealLandDatas) {
		this.newAppealLandDatas = newAppealLandDatas;
	}

	public List<EntAppealRentOutLand> getOldAppealRentOutLands() {
		return oldAppealRentOutLands;
	}

	public void setOldAppealRentOutLands(List<EntAppealRentOutLand> oldAppealRentOutLands) {
		this.oldAppealRentOutLands = oldAppealRentOutLands;
	}

	public List<EntAppealRentOutLand> getNewAppealRentOutLands() {
		return newAppealRentOutLands;
	}

	public void setNewAppealRentOutLands(List<EntAppealRentOutLand> newAppealRentOutLands) {
		this.newAppealRentOutLands = newAppealRentOutLands;
	}

	public List<EntAppealRentInLand> getOldAppealRentInLands() {
		return oldAppealRentInLands;
	}

	public void setOldAppealRentInLands(List<EntAppealRentInLand> oldAppealRentInLands) {
		this.oldAppealRentInLands = oldAppealRentInLands;
	}

	public List<EntAppealRentInLand> getNewAppealRentInLands() {
		return newAppealRentInLands;
	}

	public void setNewAppealRentInLands(List<EntAppealRentInLand> newAppealRentInLands) {
		this.newAppealRentInLands = newAppealRentInLands;
	}

	public EntKpiYearSta getKpi() {
		return kpi;
	}

	public void setKpi(EntKpiYearSta kpi) {
		this.kpi = kpi;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kpiId", getKpiId())
            .append("entRule", getEntRule())
            .append("dataYear", getDataYear())
            .append("entName", getEntName())
            .append("creditCode", getCreditCode())
            .append("town", getTown())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("appealStatus", getAppealStatus())
            .append("approvalBy", getApprovalBy())
            .append("approvalTime", getApprovalTime())
            .append("aprovalContent", getAprovalContent())
            .toString();
    }
}
